<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateArticleTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//
        Schema::create('article', function($table) {
            $table->increments('id');
            $table->char('title', 50)->default('');
            $table->string('content', 255)->default('');
            $table->integer('user_id')->unsinged()->default(0);
            $table->integer('create_time')->unsinged()->default(0);
        });
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		//
        Schema::drop('article');
	}

}
